import request from '@/utils/request'


// 获取 列表分页数据  post 传data参数  get传params参数
export function getPatientById(data) {
  return request({
    url: '/doctor/getPatientById',
    method: 'post',
    data
  })
}

// 获得医嘱记录
export function getMedicalAdvice(data) {
  return request({
    url: '/doctor/getMedicalAdvice',
    method: 'post',
    data
  })
}

export function updateMedicalAdvice(data) {
  return request({
    url: '/doctor/updateMedicalAdvice',
    method: 'post',
    data
  })
}

export function addMedicalAdvice(data) {
  return request({
    url: '/doctor/addMedicalAdvice',
    method: 'post',
    data
  })
}

export function deleteMedicalAdvice(data) {
  return request({
    url: '/doctor/deleteMedicalAdvice',
    method: 'post',
    data
  })
}

export function getCostDrug(data) {
  return request({
    url: '/doctor/getDrugList',
    method: 'post',
    data
  })
}
export function updateCostDrug(data) {
  return request({
    url: '/doctor/updateDrugList',
    method: 'post',
    data
  })
}
export function addCostDrug(data) {
  return request({
    url: '/doctor/addCostDrugList',
    method: 'post',
    data
  })
}
export function deleteCostDrug(data) {
  return request({
    url: '/doctor/deleteDrugList',
    method: 'post',
    data
  })
}
export function getOtherDrug(data) {
  return request({
    url: '/doctor/getOtherList',
    method: 'post',
    data
  })
}
export function updateOtherDrug(data) {
  return request({
    url: '/doctor/updateOtherList',
    method: 'post',
    data
  })
}
export function addOtherDrug(data) {
  return request({
    url: '/doctor/addOtherList',
    method: 'post',
    data
  })
}
export function deleteOtherDrug(data) {
  return request({
    url: '/doctor/deleteOtherList',
    method: 'post',
    data
  })
}
export function addHospitalizedApplication(data) {
  return request({
    url: '/doctor/addHospitalizedApplication',
    method: 'post',
    data
  })
}
export function addHospitalizedApplicationOut(data) {
  return request({
    url: '/doctor/addHospitalizedApplicationOut',
    method: 'post',
    data
  })
}

export function getHospitalizedApplication(data) {
  return request({
    url: '/doctor/getHospitalizedApplication',
    method: 'post',
    data
  })
}
export function delHospitalizedApplicationOut(data) {
  return request({
    url: '/doctor/delHospitalizedApplicationOut',
    method: 'post',
    data
  })
}


export function addMedicalRecord(data) {
  return request({
    url: '/doctor/addMedicalRecord',
    method: 'post',
    data
  })
}
export function updateMedicalRecord(data) {
  return request({
    url: '/doctor/updateMedicalRecord',
    method: 'post',
    data
  })
}
export function getMedicalRecordOv(data) {
  return request({
    url: '/doctor/getMedicalRecordOv',
    method: 'post',
    data
  })
}
export function insertMedicalRecordDetail(data) {
  return request({
    url: '/doctor/insertMedicalRecordDetail',
    method: 'post',
    data
  })
}
export function updateMedicalRecordDetail(data) {
  return request({
    url: '/doctor/updateMedicalRecordDetail',
    method: 'post',
    data
  })
}
export function deleteMedicalRecordDetail(data) {
  return request({
    url: '/doctor/deleteMedicalRecordDetail',
    method: 'post',
    data
  })
}
export function getAppointment(data) {
  return request({
    url: '/user/getAppointment',
    method: 'post',
    data
  })
}
export function updateAppointment(data) {
  return request({
    url: '/user/updateAppointment',
    method: 'post',
    data
  })
}
export function updateAppointmentCancel(data) {
  return request({
    url: '/user/updateAppointmentCancel',
    method: 'post',
    data
  })
}
export function deleteAppointment(data) {
  return request({
    url: '/user/deleteAppointment',
    method: 'post',
    data
  })
}
// 会诊相关
export function getConsultationByCreatedId(data) {
  return request({
    url: '/doctor/getConsultationByCreatedId',
    method: 'post',
    data
  })
}
export function updateConsultation(data) {
  return request({
    url: '/doctor/updateConsultation',
    method: 'post',
    data
  })
}
export function addConsultation(data) {
  return request({
    url: '/doctor/addConsultation',
    method: 'post',
    data
  })
}
export function deleteConsultation(data) {
  return request({
    url: '/doctor/deleteConsultation',
    method: 'post',
    data
  })
}
export function endConsultation(data) {
  return request({
    url: '/doctor/endConsultation',
    method: 'post',
    data
  })
}
export function startConsultation(data) {
  return request({
    url: '/doctor/startConsultation',
    method: 'post',
    data
  })
}
export function getConsultationByDoctorId(data) {
  return request({
    url: '/doctor/getConsultationByDoctorId',
    method: 'post',
    data
  })
}

export function departmentMsg(data) {
  return request({
    url: '/user/departmentMsg',
    method: 'post',
    data
  })
}
export function doctorMsgByConsultationOv(data) {
  return request({
    url: '/user/doctorMsgByConsultationOv',
    method: 'post',
    data
  })
}
export function doctorMsgByCurrent(data) {
  return request({
    url: '/user/doctorMsgByCurrent',
    method: 'post',
    data
  })
}
export function checkTrans(data) {
  return request({
    url: '/doctor/checkTrans',
    method: 'post',
    data
  })
}
